home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / powerb5.zip / P5WPR002.TIP < prev    next >
Text File  |  1993-06-01  |  2KB  |  49 lines

  1. January's Star-Dot-Star included a WordPerfect macro for
  2. printing a document from last page to first -- a handy
  3. capability if your printer stacks pages facing up. But it
  4. wouldn't work on one of my documents.
  5.  
  6. I discovered the problem with the very first document that
  7. had a table of contents. After each page, WordPerfect would
  8. stop and ask if I wanted to print before regenerating the
  9. table of contents. Once I discovered this, I rewrote the
  10. macro to work whether or not a table of contents was present
  11. [see below].
  12.  
  13. Donald G. Campbell
  14. San Diego
  15.  
  16. Editor's Note: As Mr. Campbell points out, the original
  17. macro did not work when there was a table of contents in the
  18. document. To fix this, it's necessary to simulate the user
  19. pressing "Y" before each page is printed. This revised macro
  20. shows how you can query WordPerfect's internal flags to
  21. determine whether or not a response is needed. As with the
  22. original, this version of REVPRINT uses macro-specific
  23. commands, so you couldn't create it by simply recording
  24. keystrokes; you'd have to use WordPerfect's idiosyncratic
  25. macro editor. However, we've saved you the trouble; the
  26. macro is available in WordPerfect 5.1 format in the file
  27. \P5WPR\REVPRINT.WPM on your PowerBase *.* Volume 5 diskette.
  28.  
  29. This revised macro will print the pages of a document in
  30. reverse order even if it has a table of contents.
  31.  
  32. {DISPLAY OFF}
  33. {Home}{Home}{Down}
  34. {WHILE}{SYSTEM}page~>1~
  35. {Print}2
  36. {IF}{STATE}&1024~Y{END IF}
  37. {Page Up}
  38. {END WHILE}
  39. {Print}2
  40. {IF}{STATE}&1024~Y{END IF}
  41.  
  42.  
  43. Title: Printing Backward Even Better
  44. Category: WPR
  45. Issue Date: May, 1992
  46. Editor: Brett Glass
  47. Supplementary Files: P5WPR\REVPRINT.WPM
  48. Filename: P5WPR002.TIP
  49.